<?php

/**
* @current cmsroleresource.php
* @author   Caoqicheng <caoqicheng@haibao.com>
* @date 2017年2月22日 下午17:41:03
*/
namespace haibao\jiepai\model\data\user;

class CmsVisitors extends \haibao\jiepai\model\data\Base{

	/**
	 * 删除时置为-1，默认是0
	 * 是否是删除
	 */
	const FLAG_IS = 0;
	const FLAG_DEL = -1;

    public $DeviceID;
 
    public $DeviceType;
    
    public $CreateTime;
    
    public $Flag;
    
    public $DeviceCategory;
    
    public $DeviceOsVersion;
    
    public function __construct(){
        parent::__construct();
        $this->setColumnName('Id', 'VisitorID');
        
        $this->stringField('DeviceID', 'DeviceID');
        $this->stringField('DeviceType', 'DeviceType');
        $this->dateField('CreateTime', 'CreateTime');
        
        $this->stringField('Flag', 'Flag',true);
        $this->intField('DeviceCategory', 'DeviceCategory');
        $this->stringField('DeviceOsVersion', 'DeviceOsVersion');

        $this->setTableName('cms_visitors');
    }
}

